import 'package:flutter/material.dart';
import 'package:get/get.dart';

class CloseDialog extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: const EdgeInsets.fromLTRB(0, 0, 5, 10),
      child: GestureDetector(
        onTap: () {},
        child: Container(
          alignment: FractionalOffset.topRight,
          child: GestureDetector(
            child: Container(
              child: Icon(
                Icons.clear,
                color: Get.isDarkMode? Colors.white:Get.theme.primaryColorLight,
              ),
            ),
            onTap: () {
              Navigator.pop(context);
            },
          ),
        ),
      ),
    );
  }
}
